import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'

Vue.use(Router)

const originalPush = Router.prototype.push

Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}
export default new Router({
  routes: [

          {
            path:'/',
            name:'Login',
            component:()=>import('@/views/login.vue')
          },
          {
            path:'/exam/ksym',
            name:'ksym',
            component:()=>import('@/views/ksym.vue')
          },
          {
            path:'/studentmian',
            name:'studentmian',
            component:()=>import('@/views/studentmian.vue')
          },
          {
            path:'/main',
            name:'main',
            component:()=>import('@/views/main.vue'),
            children:[

                  {
                    path:'/new',
                    name:'new',
                    component:()=>import('@/views/new.vue')
                  },
                  {
                    path:'/password',
                    name:'password',
                    component:()=>import('@/views/password.vue')
                  },
                  {
                    path:'/ksxx',
                    name:'ksxx',
                    component:()=>import('@/views/ksxx.vue')
                  },
                  {
                    path:'/cjcx',
                    name:'cjcx',
                    component:()=>import('@/views/cjcx.vue')
                  },
                  {
                    path:'/jsgl',
                    name:'jsgl',
                    component:()=>import('@/views/jsgl.vue')
                  },
                  {
                    path:'/xsgl',
                    name:'xsgl',
                    component:()=>import('@/views/xsgl.vue')
                  },
                 {
                   path:'/bjgl',
                   name:'bjgl',
                   component:()=>import('@/views/bjgl')
                 },
                  {
                    path:'/kcgl',
                    name:'kcgl',
                    component:()=>import('@/views/kcgl.vue')
                  },
                  {
                    path:'/classcourse',
                    name:'classcourse',
                    component:()=>import('@/views/classcourse.vue')
                  },
                  {
                    path:'/zxks',
                    name:'zxks',
                    component:()=>import('@/views/zxks.vue')
                  },

                    {
                      path: '/teacher/sjsz',
                      name: 'sjsz',
                      component: () => import('@/views/teacher/sjsz.vue')
                    },
                    {
                      path: '/teacher/sjbianji',
                      name: 'sjbianji',
                      component: () => import('@/views/teacher/sjbianji.vue')
                    },
                    {
                      path: '/teacher/bj',
                      name: 'bj',
                      component: () => import('@/views/teacher/bj.vue')
                    },
                    {
                      path: '/exam/index',
                      name: 'index',
                      component: () => import('@/views/exam/index.vue')
                    },
                    {
                      path: '/teacher/tkgl',
                      name: 'tkgl',
                      component: () => import('@/views/teacher/tkgl.vue')
                    },
                    {
                      path: '/teacher/stgl',
                      name: 'stgl',
                      component: () => import('@/views/teacher/stgl.vue')
                    },
                    {
                      path: '/exam/zsdgl',
                      name: 'zsdgl',
                      component: () => import('@/views/exam/zsdgl.vue')
                    },
                    {
                      path: '/exam/mainst',
                      name: 'mainst',

                      component: () => import('@/views/exam/mainst.vue')
                    },
                    {
                      path: '/exam/zxks',
                      name: 'zxks',
                      component: () => import('@/views/exam/zxks.vue')
                    },
			          ],
			    },
  ]
})
